//
//  SACustomerCell.m
//  SAP
//
//  Created by 中矿科技有限公司 on 17/9/12.
//  Copyright © 2017年 中矿科技有限公司. All rights reserved.
//

#import "SACustomerCell.h"

@implementation SACustomerCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setFromCustomerListModel:(SACustomerMdoel *)model{
    self.nameLabel.text =model.name;
    self.customerCode.text =[NSString stringWithFormat:@"客户编号: %@",model.customerCode];
    if(![UITool isBlankString:model.nowContractConut.description])self.nowContractConut.text =[NSString stringWithFormat:@"当前执行合同数: %@",model.nowContractConut];
    if (model.isKeynote.integerValue == 0) {
        self.keynote.hidden =YES;
    }else{
        self.keynote.hidden =NO;
    }
}


@end
